﻿<%@ Page Language="C#"  MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    EnableEventValidation="false" Inherits="Nivdal.MatchInstructions"
    Title="" Theme="SkinFile" Codebehind="MatchInstructions.aspx.cs" %>

<%@ Register Assembly="obout_Flyout2_NET" Namespace="OboutInc.Flyout2" TagPrefix="cc1" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadPlaceHolder" Runat="Server">
    <script language="javascript" type="text/javascript">
        
        function ValidateDDLsBeforeSubmit()
        {
            var good = 1;
            var CaptainFound = 0;                            
            var SetPiecesFound = 0;
            var AlertString = "";
            var SetPiecesValue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_PiecesTakerDropDownList").value;
            var CaptainValue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_CaptainDropDownList").value;
            
            // Validate set pieces taker
            if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player1DropDownList").value)
            {
                SetPiecesFound = 1;                
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player2DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player3DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player4DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player5DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player6DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player7DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player8DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player9DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player10DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            else if (SetPiecesValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player11DropDownList").value)
            {
                SetPiecesFound = 1;  
            }
            
            if ((SetPiecesFound != 1) || (SetPiecesValue == 0))
            {
                AlertString += "Set pieces taker must be on the squad\n"
                good = 0;
            }
            
            // Validate captain
            if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player1DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player2DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player3DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player4DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player5DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player6DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player7DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player8DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player9DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player10DropDownList").value)
            {
                CaptainFound = 1;
            }
            else if (CaptainValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player11DropDownList").value)
            {
                CaptainFound = 1;
            }
            
            if ((CaptainFound != 1) || (CaptainValue == 0))
            {
                AlertString += "Captain must be on the squad\n"
                good = 0;
            }
            
            // validate penalty takers
            if (
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty1DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty2DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty3DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty4DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty5DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty6DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty7DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty8DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty9DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty10DropDownList")) ||
            (!ValidatePenaltyTakers("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Penalty11DropDownList"))                      
            )
            {
                good = 0;
                AlertString +="All penalty takers must be on the squad" 
            }
            
            if (good == 1)
            { 
                return (true);
            }
            else
            {
                alert (AlertString);
                return (false);
            }       
        }
        
        function CheckPlayerDDLS(ddlnum)
        {
            var newvalue;
            switch (ddlnum)
            {
                case "1": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player1DropDownList").value;
                    break;
                case "2": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player2DropDownList").value;
                    break;
                case "3": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player3DropDownList").value;
                    break;
                case "4": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player4DropDownList").value;
                    break;
                case "5": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player5DropDownList").value;
                    break;
                case "6": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player6DropDownList").value;
                    break;
                case "7": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player7DropDownList").value;
                    break;
                case "8": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player8DropDownList").value;
                    break;
                case "9": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player9DropDownList").value;
                    break;
                case "10": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player10DropDownList").value;
                    break;
                case "11": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player11DropDownList").value;
                    break;
                case "12": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player12DropDownList").value;
                    break;
                case "13": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player13DropDownList").value;
                    break;
                case "14": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player14DropDownList").value;
                    break;
                case "15": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player15DropDownList").value;
                    break;
                case "16": 
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player16DropDownList").value;
                    break;                
                default:
                    newvalue = "0"
                    break;                    
            }             
            
            if(ddlnum != "1")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player1DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player1DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "2")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player2DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player2DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "3")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player3DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player3DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "4")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player4DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player4DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "5")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player5DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player5DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "6")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player6DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player6DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "7")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player7DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player7DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "8")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player8DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player8DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "9")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player9DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player9DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "10")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player10DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player10DropDownList").selectedIndex = 0;
                }
            }

            if(ddlnum != "11")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player11DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player11DropDownList").selectedIndex = 0;
                }
            }
            
            if(ddlnum != "12")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player12DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player12DropDownList").selectedIndex = 0;
                }
            }            
            if(ddlnum != "13")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player13DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player13DropDownList").selectedIndex = 0;
                }
            }            
            if(ddlnum != "14")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player14DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player14DropDownList").selectedIndex = 0;
                }
            }            
            if(ddlnum != "15")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player15DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player15DropDownList").selectedIndex = 0;
                }
            }            
            if(ddlnum != "16")
            {
                if (document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player16DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player16DropDownList").selectedIndex = 0;
                }
            }            
            
            
           
        }
        
        function ValidatePenaltyTakers(elid)
        {
            try
            {
                var takerValue = document.getElementById(elid).value;
                if(
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player1DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player2DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player3DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player4DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player5DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player6DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player7DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player8DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player9DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player10DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player11DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player12DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player13DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player14DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player15DropDownList").value) ||
                (takerValue == document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Player16DropDownList").value) ||
                (takerValue  == 0)
                )
                {
                    return true;
                }
                else
                {
                    return false;
                }
             }
             catch (err){return(true);}
        }
    
        function ValidatePositionDDLs(posnum)
        {
            var newvalue;
            switch (posnum)
            {   
                case "1":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position1DropDownList").value;
                    break;
                case "2":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position2DropDownList").value;
                    break;
                case "3":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position3DropDownList").value;
                    break;
                case "4":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position4DropDownList").value;
                    break;
                case "5":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position5DropDownList").value;
                    break;
                case "6":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position6DropDownList").value;
                    break;
                case "7":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position7DropDownList").value;
                    break;
                case "8":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position8DropDownList").value;
                    break;
                case "9":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position9DropDownList").value;
                    break;
                case "10":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position10DropDownList").value;
                    break;
                case "11":
                    newvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position11DropDownList").value;
                    break;
                default:
                    newvalue = "0"
                    break;  
            }
            
            if (posnum != "1")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position1DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position1DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "2")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position2DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position2DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "3")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position3DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position3DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "4")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position4DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position4DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "5")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position5DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position5DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "6")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position6DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position6DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "7")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position7DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position7DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "8")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position8DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position8DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "9")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position9DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position9DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "10")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position10DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position10DropDownList").selectedIndex = 0;
                }
            }
            if (posnum != "11")
            {
                if(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position11DropDownList").value == newvalue)
                {
                    document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_Position11DropDownList").selectedIndex = 0;
                }
            }
            
        
        }
        
    </script>

</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="basic_element">
    <asp:HiddenField ID="LanguageHiddenField" runat="server" />
    <asp:HiddenField ID="MatchIdHiddenField" runat="server" />
    
    <asp:Panel ID="TopMessagePalnel" runat="server" >
        <asp:Label ID="Message" runat="server" Text="" SkinID="ConfirmLabel"></asp:Label>
        <asp:Label ID="PlayersToSubmitErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
        <br />
    </asp:Panel>
    <asp:UpdatePanel ID="InstructionsUpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <asp:Label ID="loadFromPreviousMatchesLabel" runat="server" SkinID="InfoLabel"
    Text="<%$ Resources:Resource, MatchInstructions_LoadInstructionsFromLabelText %>"></asp:Label>
    
    <asp:DropDownList ID="PreviousMatchesDDL" AppendDataBoundItems="true" AutoPostBack="true"
        DataSourceID="PreviousMatchesDataSourse" DataTextField="MatchTitle" DataValueField="MatchId"
        runat="server" OnSelectedIndexChanged="LoadPreviousInstructions">
    </asp:DropDownList>    
    
    
    <asp:UpdateProgress ID="LoadInstructionsProgress" runat="server" AssociatedUpdatePanelID="InstructionsUpdatePanel">
        <ProgressTemplate>
            <div class="ajaxloader">
                <asp:Image ID="LoadInstructionsProgressImage" runat="server" ImageUrl="~/Images/ajax-loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    
    
    <asp:SqlDataSource ID="PreviousMatchesDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetPreviousMatchesDDLForGameInstructions" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    
    <asp:Label ID="StartingPlayersLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructions_StartingPlayersLabel %>" SkinID="TeamNameLabel"></asp:Label>

    
    
    <table id="MatchInstructionsTable" style="width: 100%;" cellpadding="1" cellspacing="0">
        <tr>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="PlayerLabel" runat="server" Text="<%$ Resources:Resource, Global_Player %>" SkinID="GridLikeLable"></asp:Label>
            </td>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="PositionLabel" runat="server" Text="<%$ Resources:Resource, Global_Position %>" SkinID="GridLikeLable"></asp:Label>
            </td>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="InstructionLabel" runat="server" Text="<%$ Resources:Resource, Global_Instruction %>" SkinID="GridLikeLable"></asp:Label>
            </td>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="PreferredActionLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructions_PreferredActionLabel %>" SkinID="GridLikeLable"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player1DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    runat="server" onchange="CheckPlayerDDLS('1')">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position1DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('1')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction1DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction1DropDownList" AppendDataBoundItems="true" DataSourceID="PreferredActionDDLSqlDataSource"
                    DataTextField="ActionName" DataValueField="ActionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player2DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('2')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position2DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('2')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction2DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction2DropDownList" AppendDataBoundItems="true" DataSourceID="PreferredActionDDLSqlDataSource"
                    DataTextField="ActionName" DataValueField="ActionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player3DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('3')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position3DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('3')"  runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction3DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction3DropDownList" AppendDataBoundItems="true" DataSourceID="PreferredActionDDLSqlDataSource"
                    DataTextField="ActionName" DataValueField="ActionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player4DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('4')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position4DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('4')"  runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction4DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction4DropDownList" AppendDataBoundItems="true" DataSourceID="PreferredActionDDLSqlDataSource"
                    DataTextField="ActionName" DataValueField="ActionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player5DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('5')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position5DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('5')"  runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction5DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction5DropDownList" AppendDataBoundItems="true" DataSourceID="PreferredActionDDLSqlDataSource"
                    DataTextField="ActionName" DataValueField="ActionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player6DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                   onchange="CheckPlayerDDLS('6')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position6DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('6')"  runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction6DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction6DropDownList" AppendDataBoundItems="true" DataSourceID="PreferredActionDDLSqlDataSource"
                    DataTextField="ActionName" DataValueField="ActionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player7DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('7')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position7DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('7')"  runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction7DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction7DropDownList" AppendDataBoundItems="true" DataSourceID="PreferredActionDDLSqlDataSource"
                    DataTextField="ActionName" DataValueField="ActionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player8DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                   onchange="CheckPlayerDDLS('8')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position8DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('8')"  runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction8DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction8DropDownList" AppendDataBoundItems="true" DataSourceID="PreferredActionDDLSqlDataSource"
                    DataTextField="ActionName" DataValueField="ActionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player9DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                   onchange="CheckPlayerDDLS('9')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position9DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('9')"  runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction9DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction9DropDownList" AppendDataBoundItems="true" DataSourceID="PreferredActionDDLSqlDataSource"
                    DataTextField="ActionName" DataValueField="ActionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player10DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('10')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position10DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('10')"  runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction10DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction10DropDownList" AppendDataBoundItems="true"
                    DataSourceID="PreferredActionDDLSqlDataSource" DataTextField="ActionName" DataValueField="ActionId"
                    runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player11DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('11')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position11DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPositionsDDLSqlDataSource" DataTextField="PositionName" DataValueField="PositionId"
                    onchange="ValidatePositionDDLs('11')"  runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Instruction11DropDownList" AppendDataBoundItems="true" DataSourceID="GetInstructionDDLSqlDataSource"
                    DataTextField="InstructionName" DataValueField="InstructionId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PreferredAction11DropDownList" AppendDataBoundItems="true"
                    DataSourceID="PreferredActionDDLSqlDataSource" DataTextField="ActionName" DataValueField="ActionId"
                    runat="server">
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <br />
    <asp:Label ID="SubstitutePlayersLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructions_SubstitutePlayersLabel %>" SkinID="TeamNameLabel"></asp:Label>
    <table style="width: 50%;" cellpadding="1" cellspacing="0">
        <tr>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="SubstitutePlayerLabel" runat="server" Text="<%$ Resources:Resource, Global_Player %>" SkinID="GridLikeLable"></asp:Label>
            </td>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="SubstitutePositionLabel" runat="server" Text="<%$ Resources:Resource, Global_Position %>" SkinID="GridLikeLable"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player12DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('12')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position12DropDownList" AppendDataBoundItems="true" DataSourceID="GetSubstitutePositionsDDLSqlDataSource"
                    DataTextField="PositionName" DataValueField="PositionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player13DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                   onchange="CheckPlayerDDLS('13')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position13DropDownList" AppendDataBoundItems="true" DataSourceID="GetSubstitutePositionsDDLSqlDataSource"
                    DataTextField="PositionName" DataValueField="PositionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player14DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('14')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position14DropDownList" AppendDataBoundItems="true" DataSourceID="GetSubstitutePositionsDDLSqlDataSource"
                    DataTextField="PositionName" DataValueField="PositionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player15DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('15')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position15DropDownList" AppendDataBoundItems="true" DataSourceID="GetSubstitutePositionsDDLSqlDataSource"
                    DataTextField="PositionName" DataValueField="PositionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="Player16DropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    onchange="CheckPlayerDDLS('16')" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="Position16DropDownList" AppendDataBoundItems="true" DataSourceID="GetSubstitutePositionsDDLSqlDataSource"
                    DataTextField="PositionName" DataValueField="PositionId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <br />
    <asp:Label ID="TeamInstructionsLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructions_TeamInstructionsLabel %>" SkinID="TeamNameLabel"></asp:Label>
    <table style="width: 100%;" cellpadding="1" cellspacing="0">
        <tr>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="TeamAggressivenessLabel" runat="server" Text="<%$ Resources:Resource, Global_Aggressiveness %>" SkinID="GridLikeLable"></asp:Label>
            </td>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="TeamAttitudeLabel" runat="server" Text="<%$ Resources:Resource, Global_Attitude %>" SkinID="GridLikeLable"></asp:Label>
            </td>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="CaptainLabel" runat="server" Text="<%$ Resources:Resource, Global_Captain %>" SkinID="GridLikeLable"></asp:Label>
            </td>
            <td style="background-image: url(Images/trbg.gif);">
                <asp:Label ID="SetPiecesTakerLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructions_SetPiecesTakerLabel %>" SkinID="GridLikeLable"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="TeamAggressivenessDropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetAggressivenessDDLSqlDataSource" DataTextField="AggressivenessName"
                    DataValueField="AggressivenessId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="TeamAttitudeDropDownList" AppendDataBoundItems="true" DataSourceID="GetAttitudeDDLSqlDataSource"
                    DataTextField="AttitudeName" DataValueField="AttitudeId" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="CaptainDropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="PiecesTakerDropDownList" AppendDataBoundItems="true"
                    DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                    runat="server">
                </asp:DropDownList>
            </td>
        </tr>
    </table>
   <%-- <asp:Label ID="TeamInstructionsErrorLabel" runat="server" Text=""></asp:Label>--%>
    <br />
    <asp:Panel ID="PenaltyTakersPanel" runat="server">
        <asp:Label ID="penaltyTakersLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructions_penaltyTakersLabel %>" SkinID="TeamNameLabel"></asp:Label>
        <table style="width: 100%;">
            <tr>
                <td>
                    <asp:DropDownList ID="Penalty1DropDownList" AppendDataBoundItems="true"
                        DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                         runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Penalty1DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:DropDownList ID="Penalty2DropDownList" AppendDataBoundItems="true"
                        DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                         runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Penalty2DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="Penalty3DropDownList" AppendDataBoundItems="true"
                            DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                             runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Penalty3DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="Penalty4DropDownList" AppendDataBoundItems="true"
                            DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Penalty4DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="Penalty5DropDownList" AppendDataBoundItems="true"
                            DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Penalty5DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="Penalty6DropDownList" AppendDataBoundItems="true"
                            DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                             runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Penalty6DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="Penalty7DropDownList" AutoPostBack="true" AppendDataBoundItems="true"
                            DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                            OnSelectedIndexChanged="PenaltyDropDownList_SelectedIndexChanged" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Penalty7DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="Penalty8DropDownList" AppendDataBoundItems="true"
                            DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Penalty8DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="Penalty9DropDownList" AppendDataBoundItems="true"
                            DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Penalty9DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="Penalty10DropDownList" AppendDataBoundItems="true"
                            DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Penalty10DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="Penalty11DropDownList" AppendDataBoundItems="true"
                            DataSourceID="GetPlayersDDLSqlDataSource" DataTextField="PlayerName" DataValueField="PlayerId"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Penalty11DropDownListErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </ContentTemplate>
    </asp:UpdatePanel>
    <asp:Button ID="SubmitOrderButton" runat="server" Text="<%$ Resources:Resource, Global_Submit %>" CssClass="GreenButtonTextStyle"
        OnClick="SubmitOrderButton_Click" OnClientClick="return ValidateDDLsBeforeSubmit()" />
    &nbsp;&nbsp;
    <asp:CheckBox ID="SADCheckBox" Text="<%$ Resources:Resource, MatchInstructions_SADCheckBox %>" runat="server" Font-Names="Arial" Font-Size="10" />
    <br />
    <br />
    <asp:Label ID="PlayersTitleLabel" runat="server" Text="<%$ Resources:Resource, Global_Players %>" SkinID="InfoLabel"></asp:Label>
    <div style="width:16px; height:16px;" >
     <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <asp:Image ID="ProgressImage" runat="server" ImageUrl="~/Images/ajax-loader.gif" />
        </ProgressTemplate>
     </asp:UpdateProgress>
    </div>
    <asp:Panel ID="PlayerDetailsPanel" runat="server" Width="100%">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    
                <asp:HiddenField ID="SortByHiddenField" runat="server" Value="Name" />
        <asp:HiddenField ID="SortAscDescHiddenField" runat="server" Value="ASC" />
        <asp:GridView ID="PlayersGridView" runat="server" SkinID="BigProfessional" DataSourceID="TeamListOfPlayersSqlDataSource" AllowPaging="false"
         AutoGenerateColumns="false">
         <Columns>
            <asp:TemplateField ItemStyle-Width="50%">
                <HeaderTemplate>
                    <asp:LinkButton ID="ShirtNumLinkButton" runat="server" Text="#" OnClick="SortByShirtNumber" SkinID="GridLikeLinkButton"></asp:LinkButton>
                    <asp:LinkButton ID="PlayerHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Players %>"  SkinID="GridLikeLinkButton" 
                    OnClick="SortByPlayer"></asp:LinkButton>
                    <asp:Label ID="TmpLabel1" runat="server" Text="(" ></asp:Label>
                    <asp:LinkButton ID="AgeLinkButton" runat="server" SkinID="GridLikeLinkButton" OnClick="SortByAge"
                     Text="<%$ Resources:Resource, Global_Age %>"></asp:LinkButton>
                    <asp:Label ID="TmpLabel12" runat="server" Text=")"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:ImageButton ID="FlagImageButton" runat="server" ImageUrl='<%# Eval("Flag", "~/Images/Flags/{0}") %>'
                     ToolTip='<%# Eval("CountryName") %>' PostBackUrl='<%# Eval("Nationality", "Country.aspx?Id={0}") %>' />
                     &nbsp;
                    <asp:Label ID="ShirtNumLabel" runat="server" Text='<%# Eval("ShirtNumber") %>' SkinID="GridLabel"></asp:Label>
                    <asp:Hyperlink ID="LinkButton1" Text='<%# Eval("Name") %>' runat="server" NavigateUrl='<%# Eval("Id", "Player.aspx?Id={0}") %>'
                        SkinID="GreenTitleHyperLink"></asp:Hyperlink>
                    &nbsp;                
                    <asp:Label ID="AgeLabel" runat="server" Text='<%# Eval("Age") %>' SkinID="GridLabel" />
                    &nbsp;
                    <asp:Image ID="YellowCard1Image" runat="server" ImageUrl="~/Images/Icons/players_yellow.jpg" 
                    Visible='<%# Eval("OneYellowVisible") %>' ToolTip='<%# Eval("WarningsToolTip") %>' />
                    <asp:Image ID="YellowCard2Image" runat="server" ImageUrl="~/Images/Icons/players_yellow.jpg" 
                    Visible='<%# Eval("SecondYellowVisible") %>' ToolTip='<%# Eval("WarningsToolTip") %>' />
                    <asp:Image ID="RedCardImage" runat="server" ImageUrl="~/Images/Icons/players_red.jpg" 
                    Visible='<%# Eval("RedVisible") %>' ToolTip='<%# Eval("WarningsToolTip") %>' />
                    <asp:Image ID="InjuryImage" runat="server" ImageUrl="~/Images/Icons/players_sick.jpg" 
                     ToolTip='<%# Eval("Injury") %>' Visible='<%# Eval("IsInjured") %>' /> 
                    <asp:Image ID="PrivateNoteImage" runat="server" ImageUrl="~/Images/Icons/PrivateNote.png" Visible='<%# Eval("PrivateNote").ToString().Length > 0 %>' />
                    <cc1:Flyout ID="PrivateNoteFlyout" runat="server" Visible='<%# Eval("PrivateNote").ToString().Length > 0 %>'
                     AttachTo="PrivateNoteImage" NoneEffect="true" Position="TOP_CENTER">
                        <div class="ToolTipStyle">
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("PrivateNote").ToString().Replace("\r\n", " <br />") %>'></asp:Label>
                        </div>
                    </cc1:Flyout>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="5%">
                <HeaderTemplate>
                    <asp:LinkButton ID="FitnessHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_FitnessHeader %>" ToolTip="<%$ Resources:Resource, Global_Fitness %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByFitness"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="FitnessLabel" runat="server" Text='<%# Eval("Fitness")+"%" %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Fitness %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="CharismaHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_CharismaTitleLabel %>" ToolTip="<%$ Resources:Resource, Global_Charisma %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByCharisma"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="CharismaLabel" runat="server" Text='<%# Eval("Charisma") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Charisma %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="ExperienceHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_ExperienceHeader %>" ToolTip="<%$ Resources:Resource, Global_Experience %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByExperience"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="ExperienceLabel" runat="server" Text='<%# Eval("Experience") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Experience %>"/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="StrongFootHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_StrongFootHeader %>" ToolTip="<%$ Resources:Resource, Global_StrongFoot %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByStrongFoot"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="StrongFootLabel" runat="server" Text='<%# Eval("StrongFootShort") %>' SkinID="GridLabel" 
                    ToolTip='<%# Eval("StrongFoot", "Strong foot: {0}") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="InstinctsHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_InstinctsHeader %>" ToolTip="<%$ Resources:Resource, Global_Instincts %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByInstincts"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="InstinctsLabel" runat="server" Text='<%# Eval("Instincts") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Instincts %>"/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="GoalKeepingHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_GoalKeepingHeader %>" ToolTip="<%$ Resources:Resource, Global_GoalKeeping %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByGoalKeeping"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="GoalKeepingLabel" runat="server" Text='<%# Eval("GoalKeeping") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_GoalKeeping %>"/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="PositioningHeaderLabel" runat="server"  Text="<%$ Resources:Resource, MatchInstructionsStep2_PositioningHeaderLabel %>" ToolTip="<%$ Resources:Resource, Global_Positioning %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByPositioning"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="PositioningLabel" runat="server" Text='<%# Eval("Positioning") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Positioning %>" />
                </ItemTemplate>
            </asp:TemplateField>                
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="StaminaHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_StaminaHeader %>" ToolTip="<%$ Resources:Resource, Global_Stamina %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByStamina"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="StaminaLabel" runat="server" Text='<%# Eval("Stamina") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Stamina %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="PowerHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructionsStep2_PowerHeaderLabel %>" ToolTip="<%$ Resources:Resource, Global_Power %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByPower"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="PowerLabel" runat="server" Text='<%# Eval("Power") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Power %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="TacklingHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_TacklingHeader %>" ToolTip="<%$ Resources:Resource, Global_Tackling %>"  
                    SkinID="GridLikeLinkButton" OnClick="SortByTackling"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="TacklingLabel" runat="server" Text='<%# Eval("Tackling") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Tackling %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="HeadingHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_HeadersTitleAbbreviation %>" ToolTip="<%$ Resources:Resource, Global_Heading %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByHeading"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="HeadingLabel" runat="server" Text='<%# Eval("Heading") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Heading %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate> 
                    <asp:LinkButton ID="QuicknessHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructionsStep2_QuicknessHeaderLabel %>" ToolTip="<%$ Resources:Resource, Global_Quickness %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByQuickness"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="QuicknessLabel" runat="server" Text='<%# Eval("Quickness") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Quickness %>"/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="TechniqueHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_TechniqueHeader %>" ToolTip="<%$ Resources:Resource, Global_Technique %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByTechnique"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="TechniqueLabel" runat="server" Text='<%# Eval("Technique") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Technique %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="ShortPassingHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_ShortPassingHeader %>" ToolTip="<%$ Resources:Resource, Global_ShortPassing %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByShortPassing"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="ShortPassingLabel" runat="server" Text='<%# Eval("ShortPassing") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_ShortPassing %>"/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="LongPassingHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_LongPassingHeader %>" ToolTip="<%$ Resources:Resource, Global_LongPassing %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByLongPassing"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="LongPassingLabel" runat="server" Text='<%# Eval("LongPassing") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_LongPassing %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="3%">
                <HeaderTemplate>
                    <asp:LinkButton ID="ShootingHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructionsStep2_ShootingHeaderLabel %>" ToolTip="<%$ Resources:Resource, Global_Shooting %>" 
                    SkinID="GridLikeLinkButton" OnClick="SortByShooting"></asp:LinkButton>            
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="ShootingLabel" runat="server" Text='<%# Eval("Shooting") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Shooting %>"/>
                </ItemTemplate>
            </asp:TemplateField>
         </Columns>
        </asp:GridView>
    </ContentTemplate>
    </asp:UpdatePanel>
      
    <asp:SqlDataSource ID="TeamListOfPlayersSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetListOfPlayersForTeam" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>         
    </asp:Panel>
    <asp:HyperLink ID="BasicOrdersHyperlink" runat="server" SkinID="GreenTitleHyperLink" Text="<%$ Resources:Resource, MatchInstructions_BasicOrdersHyperlink %>"></asp:HyperLink>
    <asp:SqlDataSource ID="GetPlayersDDLSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetPlayersDDL" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    <asp:SqlDataSource ID="GetPositionsDDLSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetStartingPositionsDDL" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="LanguageHiddenField" PropertyName="Value" Name="Language" Type="Decimal" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="GetInstructionDDLSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetInstructionDDL" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="LanguageHiddenField" PropertyName="Value" Name="Language" Type="Decimal" />
        </SelectParameters>            
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="GetAggressivenessDDLSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetAggressivenessDDL" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="LanguageHiddenField" PropertyName="Value" Name="Language" Type="Decimal" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="GetAttitudeDDLSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetAttitudeDDL" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="LanguageHiddenField" PropertyName="Value" Name="Language" Type="Decimal" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="PreferredActionDDLSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetPreferredActionsDDL" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="LanguageHiddenField" PropertyName="Value" Name="Language" Type="Decimal" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="MatchInstructionsSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetCurrentGameInstructions" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="GetSubstitutePositionsDDLSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetSubstitutePositionsDDL" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="LanguageHiddenField" PropertyName="Value" Name="Language" Type="Decimal" />
        </SelectParameters>
    </asp:SqlDataSource>
    </div>
</asp:Content>
<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, MatchInstructions_PageNameLabel %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
